//
//  OPACBookObjects.m
//  Opac45Test
//
//  Created by hanshui on 12-10-21.
//  Copyright (c) 2012年 hanshui. All rights reserved.
//

#import "OPACBookObjects.h"

@implementation OPACBookObjects

@synthesize bookId, bookName, bookType, marcNo, bookTitle;
@synthesize bookSerial, bookCopiedCount, bookRentalCount, bookAuthor, bookPress;
@synthesize ext0, ext1, ext2, ext3, ext4;
@synthesize ext5, ext6, ext7, ext8, ext9;

#pragma mark -
#pragma mark Memory methods
- (void)dealloc {
	[bookId release];
	[bookName release];
	[bookType release];
	[marcNo release];
	[bookTitle release];
	[bookSerial release];
	[bookCopiedCount release];
	[bookRentalCount release];
	[bookAuthor release];
	[bookPress release];
    
	[ext0 release];
	[ext1 release];
	[ext2 release];
	[ext3 release];
	[ext4 release];
	[ext5 release];
	[ext6 release];
	[ext7 release];
	[ext8 release];
	[ext9 release];
    
    [super dealloc];
}

-(void) toString {
    //NSLog(@"Book:TITLE:%@-SERIAL:%@-MARCNO:%@-TYPE:%@-AUTHOR:%@-PRESS:%@-COPY:%@-RENTER:%@", bookTitle, bookSerial, marcNo, bookType, bookAuthor, bookPress, bookCopiedCount, bookRentalCount);
}
@end


@implementation News

@synthesize pkId, newsId, newsTitle, newsType, newsContent;
@synthesize newsDate;
@synthesize ext0, ext1, ext2, ext3, ext4;
@synthesize ext5, ext6, ext7, ext8, ext9;

#pragma mark -
#pragma mark Memory methods
- (void)dealloc {
	[pkId release];
	[newsId release];
	[newsTitle release];
	[newsType release];
	[newsContent release];
	[newsDate release];
    
	[ext0 release];
	[ext1 release];
	[ext2 release];
	[ext3 release];
	[ext4 release];
	[ext5 release];
	[ext6 release];
	[ext7 release];
	[ext8 release];
	[ext9 release];
    
    [super dealloc];
}

-(void) toString {
    //NSLog(@"News:%@-%@-%@-%@", newsId, newsTitle, newsType, newsDate);
}
@end